package cn.school.studyManage.dao;

import cn.school.studyManage.entity.StudentBehaviorCfg;
import cn.school.studyManage.vo.StudentBehaviorCfgQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface StudentBehaviorCfgDao extends BaseMapper<StudentBehaviorCfg> {

    /**
     * 分页查询配置列表
     * @param startNum
     * @param pageSize
     * @param vo
     * @return
     */
    List<StudentBehaviorCfg> findCfgPageList(@Param("startNum")int startNum, @Param("pageSize")int pageSize,
                                             @Param("vo") StudentBehaviorCfgQueryVo vo);
//    List<StudentBehaviorCfgVo> findCfgPageList(@Param("startNum")int startNum, @Param("pageSize")int pageSize,
//                                                       @Param("vo") StudentBehaviorCfgVo vo);

    /**
     * 统计配置数量
     * @param vo
     * @return
     */
    Integer findCfgListCount(@Param("vo") StudentBehaviorCfgQueryVo vo);

    /**
     * 新增配置
     * @param cfg
     * @return
     */
    Integer createCfg(StudentBehaviorCfg cfg);





//    List<Long> findCfgListByClassIdList(@Param("classIdList") List<Long> classIdList);

}
